package com.dashan.factory;

public class WeaponFactory implements AbstactWeaponFactory {

	@Override
	public <T extends Weapon> T createWeapon(Class<T> clazz) {
		T weapon = null;
		try {
			weapon = clazz.newInstance();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return (T)weapon;
	}
}
